package com.example.testapp.activity.model;

import java.util.List;

/**
 * Created by l on 2016/8/1.
 */
public class ResponseWrapper {

    private int error;
    private String status;
    private String date;
    private List<WeaterEntity> results;

    public void setError(int error) {
        this.error = error;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public void setResults(List<WeaterEntity> results) {
        this.results = results;
    }

    public int getError() {
        return error;
    }

    public String getStatus() {
        return status;
    }

    public String getDate() {
        return date;
    }

    public List<WeaterEntity> getResults() {
        return results;
    }

    public class WeaterEntity{

        private String currentCity;
        private String pm25;
        private List<WeatherSubEntity> weather_data;//天气预报信息
        private List<WeatherSubEntity.LivingIndexEntity> index;//各项指数

        public String getCurrentCity() {
            return currentCity;
        }

        public void setCurrentCity(String currentCity) {
            this.currentCity = currentCity;
        }

        public String getPm25() {
            return pm25;
        }

        public void setPm25(String pm25) {
            this.pm25 = pm25;
        }

        public List<WeatherSubEntity> getWeather_data() {
            return weather_data;
        }

        public void setWeather_data(List<WeatherSubEntity> weather_data) {
            this.weather_data = weather_data;
        }

        public List<WeatherSubEntity.LivingIndexEntity> getIndex() {
            return index;
        }

        public void setIndex(List<WeatherSubEntity.LivingIndexEntity> index) {
            this.index = index;
        }

        public class  WeatherSubEntity{

            private String date;//天气预报时间
            private String dayPictureUrl;//白天的天气预报图片url
            private String nightPictureUrl;//晚上的天气预报图片url
            private String weather;//天气状况
            private String wind;//风力
            private String temperature;//温度

            public String getDate() {
                return date;
            }

            public void setDate(String date) {
                this.date = date;
            }

            public String getDayPictureUrl() {
                return dayPictureUrl;
            }

            public void setDayPictureUrl(String dayPictureUrl) {
                this.dayPictureUrl = dayPictureUrl;
            }

            public String getNightPictureUrl() {
                return nightPictureUrl;
            }

            public void setNightPictureUrl(String nightPictureUrl) {
                this.nightPictureUrl = nightPictureUrl;
            }

            public String getWeather() {
                return weather;
            }

            public void setWeather(String weather) {
                this.weather = weather;
            }

            public String getWind() {
                return wind;
            }

            public void setWind(String wind) {
                this.wind = wind;
            }

            public String getTemperature() {
                return temperature;
            }

            public void setTemperature(String temperature) {
                this.temperature = temperature;
            }

            public class LivingIndexEntity{
                private String title;//标题(穿衣，洗车，旅游，感冒 ，运动，紫外线强度)
                private String suitable;//是否适宜
                private String tipt;//各项指数名称
                private String des;//简介

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }

                public String getSuitable() {
                    return suitable;
                }

                public void setSuitable(String suitable) {
                    this.suitable = suitable;
                }

                public String getTipt() {
                    return tipt;
                }

                public void setTipt(String tipt) {
                    this.tipt = tipt;
                }

                public String getDes() {
                    return des;
                }

                public void setDes(String des) {
                    this.des = des;
                }
            }
        }

    }

}
